package org.dromara.quickswing.utils;

public class QSArgsUtils {

    public static String getArgValue(String[] args, String key) {  
        for (String arg : args) {  
            if (arg.startsWith("--" + key + "=")) {  
                return arg.substring(key.length() + 3);  
            }  
        }  
        return null;  
    }  

    public static boolean hasArg(String[] args, String key) {  
        for (String arg : args) {  
            if (arg.startsWith("--" + key)) {  
                return true;  
            }  
        }  
        return false;  
    }
}